<?php defined( '_SYS' ) or die( 'No direct script access allowed' );?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title><?php echo $this->title; ?></title>
<?php echo $this->headData; ?>
</head>
<body>

	<div id="toolbar-box">
		<div class="t">
			<div class="t">
				<div class="t"></div>
			</div>
		</div>
		<div class="m">
			<div class="toolbar" id="toolbar">
				<table class="toolbar">
					<tr>
						<td class="button" id="toolbar-backup">
							<a href="#" onclick="javascript:if(document.adminForm.boxchecked.value==0){alert('<?php echo C_text::_('b_Tip1');?>');}else{   submitbutton('backup')}" class="toolbar">
								<span class="icon-32-backup" title="Backup">
								</span>
							<?php echo C_text::_('Backup');?>
							</a>
						</td>
						<td class="button" id="toolbar-cancel">
							<a href="#" onclick="javascript: submitbutton('cancel')" class="toolbar">
								<span class="icon-32-cancel" title="Cancel">
								</span>
							<?php echo C_text::_('Cancel');?>
							</a>
						</td>
					</tr>
				</table>
			</div>
			<div class="header icon-48-database"><?php echo C_text::_('ToolBox').' '.C_text::_('Backup');?></div>	
			<div class="clr"></div>		
		</div>
		<div class="b">
			<div class="b">
				<div class="b"></div>
			</div>
		</div>
	</div>
	<div id="submenu-box">
			<div class="t">
				<div class="t">
					<div class="t"></div>
		 		</div>
	 		</div>
			<div class="m">

				<div class="submenu-box">
	<div class="submenu-pad">
		<ul id="submenu" class="configuration">
			<li><a class="active" href="<?php echo WEBSELF; ?>/database/display/option/backup"><?php echo C_text::_('Backup');?></a></li>
			<li><a href="<?php echo WEBSELF; ?>/database/display/option/restore"><?php echo C_text::_('Restore');?></a></li>
		</ul>

		<div class="clr"></div>
	</div>
</div>
<div class="clr"></div>
				<div class="clr"></div>
			</div>
<div class="b">
				<div class="b">
		 			<div class="b"></div>
				</div>

			</div>
		</div>
	<div class="clr"></div>
<?php 	if($this->message) echo $this->message;	?>
	<div id="element-box">
		<div class="t">
			<div class="t">
				<div class="t"></div>
			</div>
		</div>		
		
		
<div class="m">
<form action="<?php echo WEBSELF; ?>/database" method="post" name="adminForm">

	<table class="adminlist" cellpadding="1">
		<thead>
			<tr>
				<th width="2%" class="title">
					#
				</th>
				<th width="3%" class="title">
					<input type="checkbox" id="toggle" class="cb" name="toggle" value="" onclick="checkAll(<?php echo count($this->items); ?>);" />
				</th>
				<th class="title" nowrap="nowrap">
					<?php echo C_text::_( 'b_Item1' ); ?>
				</th>
				<th class="title" nowrap="nowrap">
					<?php echo C_text::_( 'b_Item2'); ?>
				</th>
			</tr>
		</thead>
		<tbody>
		<?php

			$k = 0;
			for ($i=0, $n=count( $this->items ); $i < $n; $i++)
			{
				$row 	=& $this->items[$i];
			?>
			<tr class="<?php echo "row$k"; ?>">
				<td>
					<?php echo $i+1;?>
				</td>
				<td>
					<?php echo C_html::_('grid.id', $i, $row ); ?>
				</td>
				<td align="center">
					<?php echo $row; ?>
				</td>
				<td align="center">
					<?php echo $this->records[$i]; ?>
				</td>
			</tr>
			<?php
				$k = 1 - $k;
				}
			?>
		</tbody>
	</table>

	<input type="hidden" name="task" value="" />
	<input type="hidden" name="boxchecked" value="0" />
	<?php echo C_HTML::_( 'form.token' ); ?>
</form>
</div>
		<div class="b">
			<div class="b">
				<div class="b"></div>
			</div>
		</div>
</div>
<center>
	Powered by <b><a href='http://www.metinfo.cn' target='_blank'>MetInfo</a></b> ©2008- <?php echo date('Y',time());?>&nbsp;<a href='http://www.metinfo.cn' target='_blank'>www.MetInfo.cn</a>
</center>
<?php echo $this->js; ?>
</body>
</html>